<!DOCTYPE html>
<html lang="en">
<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>核心系统 - 登录</title>

    <!-- Bootstrap Core CSS -->
    <%= stylesheet_link_tag 'application', media: 'all' %>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

<div class="container">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <div class="login-panel panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">请登录</h3>
                </div>
                <div class="panel-body">
                    <!--<form role="form">-->
                    <%= form_tag(sessions_path, role: 'form') do %>
                        <fieldset>
                            <div class="form-group">
                                <%= text_field_tag('username', nil, class: 'form-control', placeholder: '用户名', autofocus: true) %>
                            </div>
                            <div class="form-group">
                                <%= password_field_tag('password', nil, class: 'form-control', placeholder: '密码') %>
                            </div>
                            <div class="form-group">
                                <%= text_field_tag('captcha', nil, class: 'form-control', placeholder: '验证码') %>
                                <%= captcha_tag %>
                                <a href="javascript:" id="reset-image-captcha">换一张</a>
                            </div>
                            <%= submit_tag '登录', class: 'btn btn-lg btn-success btn-block' %>
                        </fieldset>
                    <% end %>
                </div>
            </div>
            <%= render 'shared/notice' %>
        </div>
    </div>
</div>


<%= javascript_include_tag 'application' %>

</body>

</html>
